<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>function</title>
    <script type="text/javascript">

        //1.函数声明

        //1.1普通函数
        function test01() {
            alert("hello");
        }

        function test02(a, b) {
            return a / b;
        }

        //1.2匿名函数
        var test03 = function () {
            alert("hello")
        };
        //2.函数调用
        //test01();
        //alert(test02(12, 5));
        test03();
    </script>
</head>
<body>

</body>
</html>